package com.dawn.idolmanage.bean;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

import com.dawn.usermanage.bean.UserBean;

/**
 * The persistent class for the ti_idolinfo database table.
 * 
 */
@Entity
@Table(name="ti_idolinfo")
public class IdolInfoBean implements Serializable {
    private static final long serialVersionUID = 1L;

    @Id
    @GeneratedValue(strategy=GenerationType.AUTO)
    private int idolInfoId;

    @Temporal( TemporalType.TIMESTAMP)
    private Date followTime;

    private int followPrice;

    private String idolID;

    private String idolName;

    private String sinaId;
    
    private int tradeId;

    //bi-directional many-to-one association to UserBean
    @ManyToOne
    @JoinColumn(name="userId")
    private UserBean tuUserinfo;

    public int getIdolInfoId() {
        return this.idolInfoId;
    }

    public void setIdolInfoId(int idolInfoId) {
        this.idolInfoId = idolInfoId;
    }

    public Date getFollowTime() {
        return this.followTime;
    }

    public void setFollowTime(Date followTime) {
        this.followTime = followTime;
    }

    public int getFollowPrice() {
        return this.followPrice;
    }

    public void setFollowPrice(int followPrice) {
        this.followPrice = followPrice;
    }

    public String getIdolID() {
        return this.idolID;
    }

    public void setIdolID(String idolID) {
        this.idolID = idolID;
    }

    public String getIdolName() {
        return this.idolName;
    }

    public void setIdolName(String idolName) {
        this.idolName = idolName;
    }

    public UserBean getTuUserinfo() {
        return this.tuUserinfo;
    }

    public void setTuUserinfo(UserBean tuUserinfo) {
        this.tuUserinfo = tuUserinfo;
    }

    public String getSinaId() {
        return sinaId;
    }

    public void setSinaId(String sinaId) {
        this.sinaId = sinaId;
    }

    public int getTradeId() {
        return tradeId;
    }

    public void setTradeId(int tradeId) {
        this.tradeId = tradeId;
    }

}